package com.fc.advbox.service;

import com.fc.advbox.entity.UserPointEntity;
import com.fc.advbox.entity.UserPointHistoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 用户
 *
 * @author Rocky
 */
public interface IUserPointService{

	UserPointEntity queryObject(Long historyId);

	UserPointEntity queryByUserId(Long userId);

	List<UserPointEntity> queryList(Map<String, Object> map);

	List<UserPointHistoryEntity> queryHistoryList(Map<String, Object> params);

	void save(UserPointEntity pointHistory);

	void save(UserPointEntity pointHistory, String desc);
	
	void delete(Long id);
	
	void deleteBatch(Long[] ids);

	void addPoint(UserPointEntity userPoint, String desc);
}
